using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Survive.Library.Tests
{
    [TestClass]
    public class ModelBuilderTests
    {
        [TestMethod]
        public void BuildDefaultModelTest()
        {
            ModelBuilder modelBuilder = new ModelBuilder();

            IModel model = modelBuilder.BuildDefaultModel();
            Assert.IsNotNull(model);
        }

        [TestMethod]
        public void AddSpaceTest()
        {
            ModelBuilder modelBuilder = new ModelBuilder();

            modelBuilder.AddSpace(101);
            IModel model = modelBuilder.Build();

            Assert.IsNotNull(model);
        }

        [TestMethod]
        public void AddSpaceWithAdjecenciesTest()
        {
            ModelBuilder modelBuilder = new ModelBuilder();

            modelBuilder.AddSpace(101).AdjacentTo(102, 103, 104, 105, 106, 107);
            IModel model = modelBuilder.Build();

            Assert.IsNotNull(model);
        }
    }
}
